//L1-012
#include <iostream>
using namespace std;
int a, b = 2;
int main()
{
    cin >> a;
    for (int i = 0; i < a - 1; i++)
    {
        b = b * 2;
    }
    printf("2^%d = %d", a, b);
}